//	PS#509: Rim around portals
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.22.949.2248
//
// Parameters:
//
//   float gFadeAmount;
//   float4 gObjectColor;
//   float gTime;
//   float pAlphaPower;
//   sampler2D pDiffuse;
//   float pEmissivePower;
//   sampler2D pScroll1;
//   float pScroll1_Uspeed;
//   float pScroll1_Vspeed;
//   sampler2D pScroll2;
//   float pScroll2_Uspeed;
//   float pScroll2_Vspeed;
//   float4 pcolor;
//
//
// Registers:
//
//   Name            Reg   Size
//   --------------- ----- ----
//   gTime           c0       1
//   gObjectColor    c2       1
//   gFadeAmount     c40      1
//   pScroll1_Uspeed c45      1
//   pScroll1_Vspeed c46      1
//   pScroll2_Uspeed c47      1
//   pScroll2_Vspeed c48      1
//   pEmissivePower  c49      1
//   pcolor          c50      1
//   pAlphaPower     c51      1
//   pScroll1        s0       1
//   pScroll2        s1       1
//   pDiffuse        s2       1
//
//
// Default values:
//
//   pScroll1_Uspeed
//     c45  = { 0.1, 0, 0, 0 };
//
//   pScroll1_Vspeed
//     c46  = { 0.1, 0, 0, 0 };
//
//   pScroll2_Uspeed
//     c47  = { -0.1, 0, 0, 0 };
//
//   pScroll2_Vspeed
//     c48  = { 0.08, 0, 0, 0 };
//
//   pEmissivePower
//     c49  = { 1, 0, 0, 0 };
//
//   pcolor
//     c50  = { 1, 1, 1, 1 };
//
//   pAlphaPower
//     c51  = { 1, 0, 0, 0 };
//

    ps_3_0
    dcl_texcoord v0.xy
    dcl_2d s0
    dcl_2d s1
    dcl_2d s2
    mov r0.x, c0.x
    mad r0.y, r0.x, c45.x, v0.x
    mad r0.z, r0.x, c46.x, v0.y
    texld_pp r1, r0.yzzw, s0
    mad r0.y, r0.x, c47.x, v0.x
    mad r0.z, r0.x, c48.x, v0.y
    texld_pp r0, r0.yzzw, s1
    add_pp r0.xyz, r1, r0
    mul_pp r0.w, r1.w, r0.w
    texld_pp r1, v0, s2
    mul_pp r0, r0, r1
    mul_pp r0.w, r0.w, c51.x
    mul_pp r0.w, r0.w, c2.w
    mul_pp oC0.w, r0.w, c40.x
    mul_pp r0.xyz, r0, c49.x
    mul_pp oC0.xyz, r0, c50

// approximately 16 instruction slots used (3 texture, 13 arithmetic)
 